package 多态案例;

public class jianpan implements USB {
    private String name;

    public jianpan(String name) {
        this.name = name;
    }

    @Override
    public void in() {
        System.out.println(name+"键盘以成功连接电脑");
    }

    @Override
    public void out() {
        System.out.println(name+"键盘以成功断开电脑");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
